// ex6_6.cpp
#include <iostream>
const int ArSize = 20;

struct Patron
{
    char fullname[ArSize];
    double money;
};

int main(void)
{
    using namespace std;
    Patron *ptr = new Patron[5];
	const int Grand_Amount = 10000;
    int count = 0;

    while (count < 5)
    {
        cout << "Enter you fullname:\n"; 
        cin.getline(ptr[count].fullname, ArSize);
        cout << "Enter you donation amount:\n";
        cin >> ptr[count].money;
        cin.get();
        count++;
    }

    cout << "\nGrand Patrons:"<< endl;
    for (int i = 0; i < count; i++)
    {
        if (ptr[i].money < Grand_Amount)
            continue;
        if (ptr[i].money >= Grand_Amount);
        {
            cout << ptr[i].fullname << ' ';     
            cout << ptr[i].money << endl;
        }
        
    }
    cout << "\nPatrons:" << endl;
    for (int i = 0; i < count; i++)
    { 
        if (ptr[i].money >= Grand_Amount)
            continue;
        cout << ptr[i].fullname << ' ';
        if (ptr[i].money == 0.0)
        {
            cout << "none" << endl;
        } 
        else
            cout << ptr[i].money << endl;
    }
	delete[] ptr;
}

